﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class SearchProductsInfoConfig : EntityTypeConfiguration<SearchProductsInfo>
    {
        public SearchProductsInfoConfig()
        {
            ToTable("Himall_SearchProducts");
            Property(item => item.BrandName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.FirstCateName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ProductName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.SecondCateName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ShopName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.ThirdCateName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.BrandLogo).HasColumnType("varchar").HasMaxLength(1000);
            Property(item => item.ImagePath).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.AttrValues).HasColumnType("text");
          
        }
    }
}
